package com.wzy.entity.dto.User;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.baomidou.mybatisplus.annotation.*;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author wzy
 * @Date: 2022/1/25 10:18
 * @Description:
 */
@Getter
@EqualsAndHashCode(callSuper = false)
@Setter
public class User extends BaseRowModel {

    /**
     *  注解 @ExcelProperty(value = String[], index = int):
     * 设置表头信息
     * value: 表名称
     * index: 列号
     */
    //部门ID
    @ExcelProperty(value = "部门id", index = 0)
    private Integer deptId;
    //登录账号
    @ExcelProperty(value = "登录账号", index = 1)
    private String loginName;
    //用户昵称
    @ExcelProperty(value = "用户昵称", index =2)
    private String userName;
    //用户邮箱
    @ExcelProperty(value = "用户邮箱", index = 3)
    private String email;
    //手机号码
    @ExcelProperty(value = "用户手机号", index = 4)
    private String phoneNumber;
    //用户性别:0男,1女
    @ExcelProperty(value = "用户性别", index = 5)
    private String sex;
    //帐号状态:0正常,1禁用
    @ExcelProperty(value = "账户状态", index = 6)
    private Integer status;
    //密码
    @ExcelProperty(value = "密码", index = 7)
    private String password;
    //类型:Y默认用户,N非默认用户
    @ExcelProperty(value = "用户类型", index = 8)
    private String userType;

}
